
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace Anonym.Data.Entities
{
    /// <summary>
    /// 用户
    /// </summary>
    public class Cms_User
    {
        
        /// <summary>
        /// Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long ID { get; set; } = 0;

        /// <summary>
        /// 登录名
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 姓名
        /// </summary>
        public string RealName { get; set; } = string.Empty;

        /// <summary>
        /// 员工编号；格式规则：
        /// </summary>
        public string EmployeeId { get; set; } = string.Empty;

        /// <summary>
        /// 手机
        /// </summary>
        public string Phone { get; set; } = string.Empty;

        /// <summary>
        /// 性别；男，女
        /// </summary>
        public string Sex { get; set; } = string.Empty;

        /// <summary>
        /// 用户组id；用户组ID逗号隔开，如：334,8,532
        /// </summary>
        public string GroupIds { get; set; } = string.Empty;

        /// <summary>
        /// 地区code
        /// </summary>
        public string RegionCode { get; set; } = string.Empty;

        /// <summary>
        /// 拼音首字母缩写
        /// </summary>
        public string Phoneticizeab { get; set; } = string.Empty;

        /// <summary>
        /// 全拼
        /// </summary>
        public string Phoneticize { get; set; } = string.Empty;

        /// <summary>
        /// 用户状态；0：在职，1：离职
        /// </summary>
        public int State { get; set; } = 0;

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; } = string.Empty;

        /// <summary>
        /// 登录随机码
        /// </summary>
        public string Code { get; set; } = string.Empty;

        /// <summary>
        /// 头像
        /// </summary>
        public string Portrait { get; set; } = string.Empty;

        /// <summary>
        /// 公司id
        /// </summary>
        public long CompanyId { get; set; } = 0;

        /// <summary>
        /// 创建人id
        /// </summary>
        public long CreatorUserId { get; set; } = 0;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; } = new DateTime(1900,1,1);

    }
}

